package com.by.wx.service.impl;

import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.by.wx.dao.RoomEquipDao;
import com.by.wx.entity.SysEquipmentOperate;
import com.by.wx.entity.SysRoomEquipment;
import com.by.wx.service.RoomEquipService;

@Service
public class RoomEquipServiceImpl implements RoomEquipService {

	public static Log log = LogFactory.getLog(RoomEquipServiceImpl.class);

	@Autowired
	private RoomEquipDao roomEquipDao;

	@Override
	public List<SysEquipmentOperate> findEquipmentOperateByCode(String deviceType) {
		return roomEquipDao.findEquipmentOperateByCode(deviceType);
	}

	@Override
	public List<SysRoomEquipment> findRoomEquipmentByUser(String roomNumber) {
		return roomEquipDao.findRoomEquipmentByUser(roomNumber);
	}
}
